<div class="page field-section" data-page="newTaskDetail" id="newTaskDetail">
	<div class="page-header">
		<label>当前位置：</label>
		<a href="javascript:void(0)" class="newTaskList" id="">收货理货</a>&nbsp;&gt;&nbsp;详情
		<!--<label id="newTaskList">收货理货</label>&nbsp;&gt;&nbsp;-->
	</div>
	<div class="page-content">
		<div class="page-content-main">
			<div class="page-content-main-header">
				<div class="page-content-main-header-item taskDetail"><b style="color: #FF7344;">理货任务信息</b></div>
				<span class="bar">|</span>
				<div class="page-content-main-header-item undoneCargoRecord"><b>理货记录</b></div>
				<div class="page-content-main-header-item fr">
					<div class="page-content-button uploadTallyingFile">上传理货任务</div>
					<div class="page-content-button none tallyListGenerate">生成理货单</div>
					<div class="page-content-button none acceptTasks">接受任务</div>
					<div class="page-content-button none opposeTasks">拒绝任务</div>
					<div class="page-content-button none finishedTasks">完成任务</div>
				</div>
				<div class="line-gray">
					<img src="../../../res/images/icon/markPage.png" / style="margin-left:0px;">
				</div>
			</div>

			<div class="page-content-main-content">

				<script type="text/template" id="newTaskDetailTpl">
					{@each datas as it}
					<div>
						通知单号：${it.recieveNoticeNumber}
					</div>
					<div class="page-content-main-content-item">
						<div class="title"><b>货物/单据</b></div>
						<div class="content">
							<table class="table">
								<thead>
									<tr>
										<th>货物名称</th>
										<th>规格型号</th>
										<th>数量</th>
										<th>重量(吨)</th>
										<th>体积(m<sup>3</sup>)</th>
										<th>产地</th>
									</tr>
								</thead>
								<tbody>
									{@each it.bulkstocks as that}
									<tr>
										<td>
											${that.bulkstockName}
										</td>
										<td>${that.specification}</td>
										<td>${that.quantity}</td>
										<td>${that.weight}</td>
										<td>${that.volume}</td>
										<td>${that.originPlace}</td>
									</tr>
									{@/each}
								</tbody>
							</table>
						</div>
					</div>
					{@/each}
				</script>
			</div>
			<div class="financeDetail">

			</div>
		</div>
	</div>
	<script type="text/template" id="financeDetailTpl">
		{@each datas as it}
		<div class="pledging_goods" style="margin-top: 15px;">
			<p style="font-size: 15px; font-weight: bold; margin-bottom: 26px;">订舱箱信息</p>
			<p><span class="span1" style="font-size: 14px;">订舱单号：${it.bookingSpaceNumber}</span></p>
			<table border="0" cellspacing="0" cellpadding="0" class="table">
				<thead>
					<tr style="background-color: #f4f5fa;">
						<th width="20%">箱型</th>
						<th width="20%">尺寸</th>
						<th width="20%">空重</th>
						<th width="20%">箱量</th>
						<th width="20%">SOC</th>
					</tr>
				</thead>
				<tbody>
					{@each it.containerBills as item}
					<tr style="background: none;">
						<td>${item.model}</td>
						<td>${item.dimension}</td>
						<td>${item.emptyWeight}</td>
						<td>${item.quantity}</td>
						<td>${getValueByKey(52, item.soc)}</td>
					</tr>
					{@/each}
				</tbody>
			</table>
		</div>
		<div class="page-content-main-content-item">
			<div class="title"><b>发/收货地</b></div>
			<div class="content">
				<div>
					<span>发货地：${it.receiveProvince}--${it.receiveCity}--${it.receiveDistrict}--${it.receiveAddress}</span>
					<span>发货联系人：${it.receiveContactor}（${it.receiveContactPhone}）</span>
				</div>
				<div>
					<span>收货地：${it.deliverProvince}--${it.deliverCity}--${it.deliverDistrict}--${it.deliverAddress}</span>
					<span>收货联系人：${it.deliverContactor}（${it.deliverContactPhone}）</span>
				</div>
			</div>
		</div>
		<div class="page-content-main-content-item">
			<div class="title"><b>保管要求</b></div>
			<div class="content">
				<div>
					<label>包装要求:${it.packingDemand}</label>
				</div>
				<div>
					<label>标记要求:${it.markDemand}</label>
				</div>
				<div>
					<label>储存条件:${it.storeDemand}</label>
				</div>
				<div>
					<label>保管要求:${it.safekeep}</label>
				</div>
			</div>
			<div class="clear"></div>
		</div>
		{@/each}
	</script>
	<script type="text/template" id="orderDetailTpl">
		<div class="pledging_goods" style="margin-top: 15px;">
			<p style="font-size: 15px; font-weight: bold; margin-bottom: 26px;">订舱箱信息</p>
			<p><span class="span1 bookingSpaceNumber" style="font-size: 14px;">订舱单号：</span></p>
			<table border="0" cellspacing="0" cellpadding="0" class="table">
					<tr style="background-color: #f4f5fa;">
						<th width="20%">箱型</th>
						<th width="20%">尺寸</th>
						<th width="20%">空重</th>
						<th width="20%">箱量</th>
						<th width="20%">SOC</th>
					</tr>
					{@each datas as it}
					<tr style="background: none;">
						<td>${it.model}</td>
						<td>${it.dimension}</td>
						<td>${it.emptyWeight}</td>
						<td>${it.quantity}</td>
						<td>${getValueByKey(52, it.soc)}</td>
					</tr>
					{@/each}
			</table>
		</div>
	</script>
	<script type="text/template" id="freightFactoringTpl">
		{@each datas as it}
		<table border="0" cellspacing="0" cellpadding="0" class="table">
			<tr style="background-color: #f4f5fa;">
				<th>序号</th>
				<th>船舶</th>
				<th>运单号</th>
				<th>箱号</th>
				<th>箱型</th>
				<th>门点地址</th>
				<th>结算价</th>
				<th>结算对象</th>
				<th>备注</th>
				<th>确认时间</th>
				<th>结算日</th>
			</tr>
			{@each it.containerInventoryList as item,index}
			{@if item.type != 3}
			<tr class="waybillNumber">
				<td>${index*1+1}</td>
				<td>${item.shipsName}</td>
				<td>${item.waybillNumber}</td>
				<td>${item.caseNumber}</td>
				<td>${item.caseSize}</td>
				<td>${item.doorsAdress}</td>
				<td>&#65509;${formatCurrency(item.settlementPrice)}</td>
				<td>${item.settlementObject}</td>
				<td>${item.remark}</td>
				<td>${item.confrimDate}</td>
				<td>${item.settlementDate}</td>
			</tr>
			{@/if}
			{@/each}
		</table>
		
		{@if it.productType == 4}
		<h1 style="margin-top: 15px;">
			发票信息</h1> <br />
			发票数量：<span class="freightQuantity">0</span> <br />
			运单数量：<span class="waybillQuantity">0</span> <br />
			应收总额：<span class="receivableAmountSum">0</span> <br />
			对价总额：<span class="factoringAmountSum">0</span> <br />
			发票总额：<span class="invoiceAmountSum">0</span> <br />
		<table class="table">
			<tr>
				<th>序号</th>
				<th>应收金额</th>
				<th>应收账款对价</th>
				<th>发票金额</th>
				<th>对应买方</th>
				<th>发票号码</th>
				<th>发票日期</th>
				<th>预计到期</th>
				<th>其他</th>
				<th>附件信息</th>
			</tr>
			{@each it.freightInfoList as item, index}
			<tr class="freight">
				<td>${index*1+1}</td>
				<td><span class="receivableAmount none">${item.receivableAmount}</span>${formatCurrency(item.receivableAmount)}</td>
				<td><span class="factoringAmount none">${item.factoringAmount}</span>${formatCurrency(item.factoringAmount)}</td>
				<td><span class="invoiceAmount none">${item.invoiceAmount}</span>${formatCurrency(item.invoiceAmount)}</td>
				<td>${item.purchaser}</td>
				<td>${item.invoiceNumber}</td>
				<td>${(item.invoiceDate).substr(0, 10)}</td>
				<td>${(item.dueDate).substr(0, 10)}</td>
				<td>${item.othersRemark}</td>
				<td>
					{@if item.fileUuid != ""}
					  <a target="_blank" href="/finance/api/v1.0/downloadFile.file?fileUuid=${item.fileUuid}">${inquireFile(item.fileUuid)}</a>&nbsp;&nbsp;
					{@/if}
				</td>
			</tr>
			{@/each}
		</table>
		{@/if}
		{@/each}
	</script>
	<div class="dialog none" id="confirmDialog" style="width:300px;">
		<div class="dialogTitle"></div>
		<button class="closeDiv">×</button>
		<div class="dialogContent">
		</div>
		<div class="footerBtn">
			<div class="dialogBtn dialogHandlerBtn radius_shadow">确定</div>
		</div>
	</div>
	<div id="fullBg" class="fullBg none"></div>
</div>